package com.cskaoyan.model.vo;

import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @description：TODO
 * @author     ：huzhouming
 * @date       ：2022/5/6 17:04
 */
@Data
public class MarketSystemVO {

    /**
     * market_mall_longitude : 121.52
     * market_mall_latitude : 31.201900
     * market_mall_address : 武汉2
     * market_mall_qq : 13931018612
     * market_mall_phone : 021-xxxx-xxxx
     * market_mall_name : market2fhdagf
     */
    @Pattern(regexp = "(([0-9]|[1-9][0-9]|1[0-7][0-9]).[0-9]{2}|180.00)(E|W)",message = "地理坐标经度的格式:x.xx+E/W，经度值0-180之间")
    private String market_mall_longitude;
    @Pattern(regexp = "((([0-9]|[1-8][0-9]).[0-9]{2})|90.00)(S|N)",message = "地理坐标纬度的格式:x.xx+S/N，纬度值0-90之间")
    private String market_mall_latitude;
    @Pattern(regexp = "[\\u4E00-\\u9FA5]{2,15}",message = "商场地址只能输入2-15个汉字")
    private String market_mall_address;
    @Pattern(regexp ="[1-9]([0-9]{5,11})",message = "QQ号格式错误")
    private String market_mall_qq;
    @Pattern(regexp ="0?(13|14|15|18|17)[0-9]-[0-9]{4}-[0-9]{4}",message = "手机号格式要为13、14、15、17、18开头，且为xxx-xxxx-xxxx的形式")
    private String market_mall_phone;

    private String market_mall_name;

    public void setMarket_mall_longitude(String market_mall_longitude) {
        this.market_mall_longitude = market_mall_longitude;
    }

    public void setMarket_mall_latitude(String market_mall_latitude) {
        this.market_mall_latitude = market_mall_latitude;
    }

    public void setMarket_mall_address(String market_mall_address) {
        this.market_mall_address = market_mall_address;
    }

    public void setMarket_mall_qq(String market_mall_qq) {
        this.market_mall_qq = market_mall_qq;
    }

    public void setMarket_mall_phone(String market_mall_phone) {
        this.market_mall_phone = market_mall_phone;
    }

    public void setMarket_mall_name(String market_mall_name) {
        this.market_mall_name = market_mall_name;
    }

    public String getMarket_mall_longitude() {
        return market_mall_longitude;
    }

    public String getMarket_mall_latitude() {
        return market_mall_latitude;
    }

    public String getMarket_mall_address() {
        return market_mall_address;
    }

    public String getMarket_mall_qq() {
        return market_mall_qq;
    }

    public String getMarket_mall_phone() {
        return market_mall_phone;
    }

    public String getMarket_mall_name() {
        return market_mall_name;
    }
}
